import { createApp } from 'vue'
import App from './App.vue'

import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'   //国际化
import router from './router/'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// import VueTinymce from "@packy-tang/vue-tinymce"



const app = createApp(App)
//注册所有的图标 
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(ElementPlus,{locale: zhCn}).use(router).mount('#app')
// app.use(ElementPlus,{locale: zhCn}).use(router).mount('#app')
